from rest_framework import serializers
from . import models

# 注册
class UserSerializer(serializers.ModelSerializer):
    class Meta:
        model=models.User
        fields="__all__"


# 专业
class ProfessionalSerializer(serializers.ModelSerializer):
    class Meta:
        model=models.Professoinal
        fields="__all__"